﻿#region 版权信息
// ------------------------------------------------------------------------------
// Copyright: (c) 2029  耍嗨科技（成都）有限公司 - Amm
// 项目名称：$SOLUTION/$.Amm.Common
// 文件名称：OptionOutput.cs
// 创建时间：2020093011:13
// 更改时间：2020093011:13
//  ------------------------------------------------------------------------------
#endregion

using System;

namespace Colorful.Furniture.CommonDto
{
    /// <summary>
    /// 下拉选项输出
    /// </summary>
    public class OptionOutputDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public object Value { get; set; }

        /// <summary>
        /// 禁用
        /// </summary>
        public bool Disabled { get; set; }

        /// <summary>
        /// 额外数据
        /// </summary>
        public object Data { get; set; }
    }

    /// <summary>
    ///  下拉选项输出
    /// </summary>
    /// <typeparam name="TValue">值类型</typeparam>
    /// <typeparam name="TData">数据类型</typeparam>
    public class OptionOutputDto<TValue, TData>
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public TValue Value { get; set; }

        /// <summary>
        /// 禁用
        /// </summary>
        public bool Disabled { get; set; }

        /// <summary>
        /// 额外数据
        /// </summary>
        public TData Data { get; set; }
    }

    /// <summary>
    /// 下拉选项输出
    /// </summary>
    public class OptionOutputIdDto
    {
        /// <summary>
        /// 名称
        /// </summary>
        public string Label { get; set; }

        /// <summary>
        /// 值
        /// </summary>
        public Guid Value { get; set; }

        /// <summary>
        /// 禁用
        /// </summary>
        public bool Disabled { get; set; }

        /// <summary>
        /// 额外数据
        /// </summary>
        public object Data { get; set; }
    }

}